package com.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.model.Order;

public interface OrderService extends IService<Order> {
    /**
     * 创建订单
     */
    void createOrder(Order order);
    
    /**
     * 取消订单
     */
    void cancelOrder(Long id);
    
    /**
     * 支付订单
     */
    void payOrder(Long id);
    
    /**
     * 发货
     */
    void shipOrder(Long id);
    
    /**
     * 确认收货
     */
    void confirmOrder(Long id);
    
    /**
     * 分页查询用户订单
     */
    Page<Order> getUserOrderPage(Page<Order> page, Long userId, Integer status);
} 